/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Operations.Spatial;

/**
 *
 * @author littlechild
 */
class TemplateLaplacianFunction implements TemplateFunctionR  {
    double sigma;
    double OneOverSigmaSquare;
    TemplateLaplacianFunction(double s) {
        sigma=s;
        OneOverSigmaSquare=1/(sigma*sigma);
    }

    public double getValue(double r) {
       return (r*r*OneOverSigmaSquare/2-1)
               *Math.exp(-(r*r*OneOverSigmaSquare)/2);
    }
}
